package com.urea.system.domain;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.urea.common.annotation.Excel;
import com.urea.common.core.domain.BaseEntity;

/**
 * 终端日志对象 t_terminal_log
 * 
 * @author liuzd
 * @date 2023-08-01
 */
@TableName("t_terminal_log")
@Data
@ToString
public class TerminalLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 终端id */
    @Excel(name = "终端id")
    @ApiModelProperty( "终端id")
    private Long terminalId;

    /** 终端当前容量 */
    @Excel(name = "终端当前容量")
    @ApiModelProperty( "终端当前容量")
    private BigDecimal terminalCapacity;

    /** 变化容量 */
    @Excel(name = "变化容量")
    @ApiModelProperty( "变化容量")
    private BigDecimal changeCapacity;

    /** 操作人 */
    @Excel(name = "操作人")
    @ApiModelProperty( "操作人")
    private String operater;

    /** 日志类型;0填料，1客户加料 */
    @Excel(name = "日志类型;0填料，1客户加料")
    @ApiModelProperty( "日志类型;0填料，1客户加料")
    private Integer logType;

    /** 订单号 */
    @Excel(name = "订单号")
    @ApiModelProperty( "订单号")
    private String orderNo;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty( "创建时间")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdTime;


}
